/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.service;

import com.comac.ins.common.BaseResult;
import com.comac.ins.config.FeignConfiguration;
import com.comac.ins.vo.req.SysCarouselRequestVO;
import com.comac.ins.vo.req.SysFileRequestVO;
import com.comac.ins.vo.res.SysCarouselResponseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 类SysCarouselService.java的实现描述：轮播表 service
 */
@FeignClient(url = "${feign.userCenterUrl:}", value = "usercenter-service", contextId = "sysCarousel", configuration = FeignConfiguration.class)
@Api(tags = "轮播表", value = "轮播表")
public interface SysCarouselFeignService {

    @RequestMapping(value = "/sysCarousel/insert", method = RequestMethod.POST)
    @ApiOperation(value = "新增轮播")
    BaseResult insert(@RequestBody SysCarouselRequestVO vo);

    @RequestMapping(value = "/sysCarousel/update", method = RequestMethod.POST)
    @ApiOperation(value = "更新轮播")
    BaseResult update(@RequestBody SysCarouselRequestVO vo);

    @RequestMapping(value = "/sysCarousel/selectOne", method = RequestMethod.POST)
    @ApiOperation(value = "获取一条记录")
    SysCarouselResponseVO selectOne();

    @ApiOperation(value = "上传文件")
    @RequestMapping(value = "/sysCarousel/uploadFile", method = RequestMethod.POST)
    BaseResult uploadFile(@RequestBody SysFileRequestVO sysFileRequestVO);

}
